package com.bjpowernode.crm.settings.service;

import com.bjpowernode.crm.settings.domain.DicValue;

import java.util.List;

/**
 * ClassName:DicValueService
 * Package:com.bjpowernode.crm.settings.service
 * Date:2022/6/6 19:52
 * Description:
 * Author:zsm@zhangshuming.com
 */
public interface DicValueService {

    List<DicValue> queryAllDicValueList();

    /**
     * 新增数据字典类型
     * @param dicValue
     */
    void saveCreateDicValue(DicValue dicValue);

    /**
     * 根据id获取数据字典值信息
     * @param id
     * @return
     */
    DicValue queryAllDicValueById(String id);

    /**
     * 更新数据字典值
     * @param dicValue
     */
    void saveEditDicValue(DicValue dicValue);

    void deleteDicValueById(String[] ids);

    /**
     * 根据类型编码获取数据
     * @param typeCode
     * @return
     */
    List<DicValue> queryDicValueListByTypeCode(String typeCode);
}
